class IdentitiesVo {

  IdentitiesData? data;

  IdentitiesVo({this.data});

  IdentitiesVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new IdentitiesData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class IdentitiesData {
  int? id;
  int? userId;
  String? realname;
  String? number;
  List<IdentitiesImages>? images;

  IdentitiesData({this.id, this.userId, this.realname, this.number, this.images});

  IdentitiesData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    realname = json['realname'];
    number = json['number'];
    if (json['images'] != null) {
      images = <IdentitiesImages>[];
      json['images'].forEach((v) {
        images!.add(new IdentitiesImages.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['realname'] = this.realname;
    data['number'] = this.number;
    if (this.images != null) {
      data['images'] = this.images!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class IdentitiesImages {
  int? id;
  String? image;
  int? type;

  IdentitiesImages({this.id, this.image, this.type});

  IdentitiesImages.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    image = json['image'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['image'] = this.image;
    data['type'] = this.type;
    return data;
  }
}
